]> dgit.raspbian.org Git - pcre2.git/commit
Backport of pcre2-10.48-Check-JIT-mode-before-validation.patch
authorZoltan Herczeg <zherczeg7@gmail.com>
Sun, 9 Aug 2026 09:05:54 +0000 (11:05 +0200)
committerMatthew Vernon <matthew@debian.org>
Tue, 1 Sep 2026 10:43:48 +0000 (11:43 +0100)
commit9bb46b0994e498d09460d44f09fbcd0021ced0db
tree12bb4e6d637857748c13c596774f51e8ed619631
parent2e17239e9c31bdc0e6478b15d4bf8039518179d9
Backport of pcre2-10.48-Check-JIT-mode-before-validation.patch

Cherry-pick of f67db227af31bba7cdf2a7a00b97af91b588c2f5 and e2f100156b94cf85dce9046b47a3274590487de4

Fix pcre2_match to check for JIT support before JIT validation & execution (#926)

This fixes the issue that the JIT branch's UTF validation is not pinned to be identical to the interpreter's validation.

This was not robust, and lead to a bug, in the case where the JIT UTF validation is done, but because the relevant JIT mode was not compiled, it falls through to the interpreter and skips the interpreter's own UTF validation and setup.

Add a testcase for #926 (#940)

(cherry picked from commit ab7097fbde778e0e4d17752ba2a14a7430d35385)
src/pcre2_internal.h
src/pcre2_jit_match.c
src/pcre2_jit_misc.c
src/pcre2_match.c
testdata/testinput17
testdata/testoutput17